from socket import *
import threading
# from threading import *
# from socket import *


class Listener(threading.Thread):
    # constructor
    def __init__(self, handler, logger, sock):
        threading.Thread.__init__(self)
        self.sock = sock
        self.mHandler = handler
        self.logger = logger
    
    # loop die luistert
    def run():
        while True:
            data, address = sock.recvfrom(200)
            mHandler.add_queue(data, address)
